package com.example.LibrarySystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.LibrarySystem.pojo.Preeses;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PressesMapper extends BaseMapper<Preeses> {

    /**
     * 根据name 模糊查询
     * @param name
     * @return
     */

    @Select("select * from presses where name like '%#{name}%'")
    public List<Preeses> likeByName(@Param("name") String name);
}
